<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="/pages/login/common.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String showId = request.getParameter("showId");
showId = showId == null ? "" : showId;
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title></title>
    
    <meta http-equiv="X-UA-Compatible" content="IE=8">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta content="B2B电商平台" name="description"/>
	<meta content="B2B电商平台" name="keyword"/>
	<link rel="stylesheet" type="text/css" href="<%=path %>/include/css/style.css" />
	<link rel="stylesheet" type="text/css" href="<%=path %>/include/sweetalert/sweetalert.css" />
	<link rel="stylesheet" href="<%=path%>/include/loading/css/loading.css" type="text/css"></link>
	<script type="text/javascript" src="<%=path %>/include/js/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="<%=path %>/include/js/icss.left.js"></script>
	<script type="text/javascript" src="<%=path %>/include/sweetalert/sweetalert.min.js"></script>
	<script type="text/javascript" src="<%=path %>/include/sweetalert/sweetalert-dev.js"></script>
	<script type="text/javascript" src="<%=path%>/include/loading/js/loading.js"></script>
	<script type="text/javascript">
	</script>
  </head>
  
  <body style="padding-top:10px;margin:0;width:100%;">
  	<jsp:include page="../html/main/mainHead.jsp"  >
  	<jsp:param name="hrefFlag" value="mainAccountManage" />
  	</jsp:include>
  	<div style="width:80%;text-align:center;display:block;overflow:hidden;margin-left: 10%;">
	  	<div style="width:20%;float:left;min-height:500px;">
	  		<div class="NewLeft">
			<div class="LeftBox">
				<h3>我的店铺</h3>
				<dl>
					<dd id="KDSQ" class="ddCur"><a href="javascript:void('')" target="_self" url="<%=path %>/shopApply/toShopPage.do" onclick="_gotoPage('<%=path %>/shopApply/toShopPage.do')">开店申请</a></dd>
					<dd id="DPXX"><a href="javascript:void('')" target="_self" url="<%=path %>/shopManage/toShopInfo.do" onclick="_gotoPage('<%=path %>/shopManage/toShopInfo.do')">店铺信息</a></dd>
				</dl>
			</div>
			<div class="LeftBox">
				<h3>安全设置</h3>
				<dl>
					<dd id="YXRZ"><a href="javascript:void('')" target="_self" url="<%=path %>/emailAuthenticate/emailAuthenticate.do" onclick="_gotoPage('<%=path %>/emailAuthenticate/emailAuthenticate.do')">邮箱认证</a></dd>
					<dd id="XGMM"><a href="javascript:void('')" target="_self" url="<%=path %>/passwordEdit/toPwdEdit.do" onclick="_gotoPage('<%=path %>/passwordEdit/toPwdEdit.do')">修改密码</a></dd>
					<dd id="XGMM" style="display:none;"><a href="javascript:void('')" target="_self" onclick="_gotoPage('<%=path %>/pages/test/infoTip.jsp')">提示模板</a></dd>
				</dl>
			</div>
			<div class="LeftBox">
				<h3>会员管理</h3>
				<dl>
					<dd id="HYSZ"><a href="javascript:void('')" target="_self" url="<%=path %>/shopVip/toShopVip.do" onclick="_gotoPage('<%=path %>/shopVip/toShopVip.do')">会员设置</a></dd>
					<!-- 未拥有店铺，不可见 -->
					<c:if test="${ userShopExist eq '1'}">
					<dd id="HYGL"><a href="javascript:void('')" target="_self" url="<%=path %>/shopVip/toShopVip.do" onclick="_gotoPage('<%=path %>/shopVipInfo/toShopVipInfo.do')">会员管理</a></dd>
					</c:if>
				</dl>
			</div>
			<!-- 未拥有店铺，不可见 -->
			<c:if test="${ userShopExist eq '1'}">
			<div class="LeftBox">
				<h3>互动管理</h3>
				<dl>
					<dd id="LYGL"><a href="javascript:void('')" target="_self" url="<%=path %>/custMsg/toCustMsgList.do" onclick="_gotoPage('<%=path %>/custMsg/toCustMsgList.do')">留言管理</a></dd>
				</dl>
			</div>
			</c:if>
			<div class="LeftBox">
				<h3>权限管理</h3>
				<dl>
					<dd id="CDZYGL"><a href="javascript:void('')" target="_self" url="<%=path %>/authority/toAccountRightPage.do" onclick="_gotoPage('<%=path %>/resourceManage/toResourceManageList.do')"></a></dd>
					<dd id="DYQXGL"><a href="javascript:void('')" target="_self" url="<%=path %>/authority/toAccountRightPage.do" onclick="_gotoPage('<%=path %>/authority/toAccountRightPage.do')">店员权限设置</a></dd>
				</dl>
			</div>
		</div>
	  	</div>
	  	<div style="width:80%;float:left;height:auto;">
	  		<iframe name="rightFrame" id="rightFrame" src="<%=path %>/shopApply/toShopPage.do" style="overflow:hidden;height:auto;min-height:500px;width:100%;" frameborder="0" scrolling="no"></iframe>
	  	</div>
  	</div>
  	<jsp:include page="../html/main/mainFoot.html" flush="true"/>  
  </body>
  <script type="text/javascript">
  var showId = "<%=showId%>";
  $(document).ready(function(){
	  if(showId!=""){
	  	 $(".LeftBox dd").removeClass("ddCur");
	  	 $("#"+showId).addClass("ddCur");
	  	 _gotoPage($("#"+showId +" a").attr("url"));
	  }
  });
  function _gotoPage(url){
  	$("#rightFrame").attr("src",url);
  }
  </script>
</html>
